﻿#region 命名空间

using System;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Ext.Net.MVC;

#endregion

namespace Sharp.Web.Models
{
    public class UserGroupModel
    {
        [HiddenInput] 
        public Guid Id { get; set; }

        /// <summary>
        ///     标题
        /// </summary>
        /// <value>标题</value>
        [Display(Name = "用户组"),Required]
        [Remote("CheckTitle", "UserGroup", ErrorMessage = "此用户组已存在")]
        public string Title { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        /// <value>备注</value>
        [Display(Name = "备注"), Column(Width = 300, Text = "备注")]
        public string Remark { get; set; }
 
        [Display(Name = "父节点ID"),HiddenInput]
        public string ParentId { get; set; }
    }
}